<form name="frmDanhSachLop" id="frmDanhSachLop" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
    <?php
	$_rowHeader = "DANH SÁCH LỚP";
	include "views/RowHeader.php";
	?>
    <tr>
        <td colspan="3">
            <table width="100%" border="1" cellspacing="0" cellpadding="1px" class="table_content">
                <tr>
                    <th width="7%">STT</th>
                    <th width="15%">Mã lớp</th>
                    <th>Tên lớp</th>
                    <th width="10%">Khóa</th>
                    <th width="15%">Danh sách SV</th>
                </tr>
                <?php				
				$danhSachLop = $user->layDanhSachLop(true);
				if (count($danhSachLop)) {
					$i = 1;
					foreach($danhSachLop as $lop) {
				?>
                <tr>
                	<th><?php echo $i++; ?></th>
                    <td><?php echo $lop['LOP_MA_SO']; ?></td>
                    <td><?php echo $lop['LOP_TEN']; ?></td>
                    <td><?php echo $lop['KH_MA_SO']; ?></td>
                    <td align="center">
                    	<input type="button" class="button_1" id="<?php echo $lop['LOP_MA_SO']; ?>"
                        	onclick="xemDanhSachSinhVien(this.id);" value="Xem"
                        />
                    </td>
                </tr>
                <?php
					}
				} else {
					echo '<tr><td colspan="5" align="center">Tài khoản này không quản lý lớp nào!</td></tr>';
				}
				?>
            </table>
        </td>
    </tr>
    <tr><td colspan="3">&nbsp;</td></tr>
</table>
</form>